// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

03A4: script_name 'taxipsg' 
0001: wait 0 ms 
0001: wait 5000 ms 

:PSSNGR_33
0001: wait 50 ms  


00D6: if or
8256: not player $PLAYER_CHAR defined
0117: player $PLAYER_CHAR wasted
then
0002: jump @PSSNGR_33 
end

00D6: if 
0038:   $onmission == 0 // $ == int 
004D: jump_if_false @PSSNGR_33  
00A0: store_actor $player_actor position_to 10@ 11@ 12@ 
00D6: if 
05F0: 4@ = random_vehicle_near_point 10@ 11@ 12@ in_radius 20.0 find_next 0 pass_wrecked 1 //IF and SET 
004D: jump_if_false @PSSNGR_33 


00D6: if or 
0137:   car 4@ model == 150 
0137:   car 4@ model == 168
0137:   car 4@ model == 216
0137:   car 4@ model == 6154
004D: jump_if_false @PSSNGR_168 
0002: jump @PSSNGR_221 

:PSSNGR_168
00D6: if 
05F0: 4@ = random_vehicle_near_point 10@ 11@ 12@ in_radius 20.0 find_next 1 pass_wrecked 1 //IF and SET 
004D: jump_if_false @PSSNGR_33 
00D6: if  or 
0137:   car 4@ model == 150 
0137:   car 4@ model == 168
0137:   car 4@ model == 216
0137:   car 4@ model == 6154
004D: jump_if_false @PSSNGR_33 

:PSSNGR_221

01E9: 5@ = car 4@ num_passengers
046C: 6@ = car 4@ driver

00D6: if and
056D:   actor 6@ defined
0039:   5@ == 0 // @ == int
then
0216: set_car 4@ taxi_available_light_to 1
else
0216: set_car 4@ taxi_available_light_to 0
end 



0002: jump @PSSNGR_33